<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateEducationAndTrainingsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('education_and_trainings', function (Blueprint $table) {
            $table->increments('id');
            $table->string('edu_start_stop_time')->nullable()->comment('起止时间');
            $table->string('school_name')->nullable()->comment('学校名称');
            $table->string('professional')->nullable()->comment('专业');
            $table->string('academic_degree')->nullable()->comment('所获学历、学位');
            $table->integer('resume_id')->nullable()->comment('简历编号');

            $table->timestamps();

            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('education_and_trainings');
    }
}
